<?php //$this->Html->script('jquery-1.4.2.min');                      ?>
<div class="widget grid12">
    <div class="whead"><h6>FORMULARIO DE EDICION CAMBIO ORDEN</h6><div class="clear"></div></div>
    <?php echo $this->Form->create('Cambiordene', array('id' => "validate")); ?>    
        
       
   
    <?php echo $this->Form->input('id', array('type'=>'hidden')); ?>
            
    <div class="formRow"> 
            <div class="grid3"><label>Fecha :</label></div>
            <div class="grid9">
                
                <?php echo $this->Form->text("Cambiordene.fecha", array('placeholder' => 'Ingrese Fecha a-m-d Ej: 2012-23-04', 'id' => "fecha")); ?>
            </div>
            <div class="clear"></div>
    </div>


    <div class="formRow"> 
        <div class="grid3"><label>Numero CO :</label></div>
        <div class="grid9">
            <?php echo $this->Form->text("Cambiordene.numero", array('placeholder' => 'Ingrese numero Ej: 2', "class" => "validate[required]")); ?>            
        </div>
        <div class="clear"></div>
    </div>
    
    <div class="formRow"> 
        <div class="grid3"><label>Volumen :</label></div>
        <div class="grid9">
            <?php echo $this->Form->text("Cambiordene.volumen", array('placeholder' => 'Ingrese volumen Ej: 2')); ?>            
        </div>
        <div class="clear"></div>
    </div>
    
    <div class="formRow">
        <div class="grid3"><label>Original :</label></div>
        <div class="grid3">            
            <?php echo $this->Form->checkbox("Cambiordene.original", array('value' => '1', 'hiddenField' => '0')); ?>
        </div>

        <div class="grid3"><label>Cant Firmas :</label></div>
        <div class="grid3">            
            <?php echo $this->Form->text('Cambiordene.cantforiginal', array('placeholder' => '0')); ?>
            <?php //echo $this->Form->checkbox("tagSel", array('value' => 1, 'hiddenField' => false)); ?>
        </div>
        <div class="clear"></div>
    </div>

    <div class="formRow">
        <div class="grid3"><label>Copia: </label></div>
        <div class="grid3">
            <?php echo $this->Form->checkbox("Cambiordene.copia", array('value' => '1', 'hiddenField' => '0')); ?>
        </div>
        <div class="grid3"><label>Cant. Firmas :</label></div>
        <div class="grid3">
            <?php echo $this->Form->text('Cambiordene.cantfcopia', array('placeholder' => '0')); ?>
        </div>        
        <div class="clear"></div>
    </div>

    <div class="formRow"> 
        <div class="grid3"><label>Monto : </label></div>
        <div class="grid9">
            <?php echo $this->Form->text("Cambiordene.monto", array('placeholder' => 'Ingrese numero Ej: 2', "class" => "validate[required]")); ?>            
        </div>
        <div class="clear"></div>
    </div>
    
    <div class="formRow"> 
        <div class="grid3"><label>Observaciones :</label></div>
        <div class="grid9">
            <?php echo $this->Form->text("Cambiordene.observaciones", array('placeholder' => 'Ingrese Ovservaciones')); ?>            
        </div>
        <div class="clear"></div>
    </div>



</div>

    <div class="clear"></div>

    <div class="formRow">
        <?php
        $options = array(
            'label' => 'Editar Datos',
            'class' => 'buttonS bGreen',
            'id' => 'btEnvia'
        );
        echo $this->Form->end($options);
        ?> 
        <div class="clear"></div>        
    </div>
    
    <script>
    $(document).ready(function() { 
        
        $( "#fecha" ).datepicker({
            defaultDate: +7,
            showOtherMonths:true,
            autoSize: true,
            /*appendText: '(Ano-Mes-Dia)',*/
            dateFormat: 'yy-mm-dd',
            changeMonth: true,
            changeYear: true
        }); 
        }); 
    </script>
